<?php
namespace Home\Model;
use Think\Model\RelationModel;
class TsurveyindexModel extends RelationModel{
    protected $trueTableName = 't_survey_index';
    protected $_link=array(
        'choices' => array(
            'mapping_type' => self::HAS_MANY,
            'class_name' => 't_survey_index_item',
            'foreign_key' => 'indexID',
       //     'mapping_fields'=>'portNum,portName,portType,status'
        ),
    );
}
